//代码1
int main()
{
	int n = 1;
	int ret = 0;
	do
	{
		int sum = 1;
		int i = 1;
		do
		{
			sum *= i;
			i++;
		} while (i <= n);
		ret += sum;
		n++;
	} while (n <= 10);
	printf("%d\n", ret);
	return 0;
}